package com.example.javatwo.service.cg.djg;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.javatwo.mapper.cg.djg.SupplierOrProductMapper;
import com.example.javatwo.pojo.cg.djg.Product_d;
import com.example.javatwo.pojo.cg.djg.Supplier_d;

@Service
public class SupplierOrProductService {

	@Autowired
	 private SupplierOrProductMapper supplierOrProductMapper;
	
	/**
	 * 查询所有的供应商
	 * @return
	 */
	public List<Supplier_d> fandSupplier(){
		return supplierOrProductMapper.fandSupplier();
	}
	
	
	/**
	 * 查询所有的物料信息
	 * @return
	 */
	public List<Product_d> fandProduct(){
		return supplierOrProductMapper.fandProduct();
	}
}
